package com.zcxy.core.bean;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author zcc
 * @version 1.0.0
 * @ClassName TreeData.java
 * @Description TODO
 * @createTime 2020年07月23日 16:04:00
 */
public class TreeData<T> implements Serializable {


    @ApiModelProperty(value = "主键")
    private String key;

    @ApiModelProperty(value = "名称")
    private String label;

    @ApiModelProperty(value = "图标")
    private String icon;


    @ApiModelProperty(value = "是否有子节点")
    private boolean hasChildren;

    @ApiModelProperty(value = "父id")
    private String parentId;

    @ApiModelProperty(value = "实体对象")
    private T t;


    public TreeData() {

    }
}
